package com.ppz.Service;


import com.ppz.dao.User;
import org.springframework.transaction.annotation.Transactional;



@Transactional
public interface UserService  {

    /**
     * 用户登录
     * @param phone
     * @param password
     * @return
     */
    public User loginUser(String phone, String password);


    /**
     * 判断手机号是否存在
     * @param phone
     * @return
     */
    public User isexistUser(String phone);

    /**
     * 用户添加
     * @param user
     */
    public void addUser(User user);

    /**
     * 用户修改
     * @param user
     */
    public void updateUser(User user);

    /**
     * 获取用户信息
     * @param phone
     * @return
     */
    public User getUserByPhone(String phone);

    /**
     * 删除用户信息
     *
     * @param phone
     */
    public boolean deleteUserByPhone(String phone);
}
